home *** CD-ROM | disk | FTP | other *** search
/ Chip 1996 November / Chip 11-96.iso / treiber / drucker / lexmark / optrae / windows / optraewi.exe / LINPCL.ZIP / PCL.LIN
INI File  |  1995-10-04  |  4KB  |  158 lines

  1. [Variables]
  2. ;
  3. ; >>>
  4. ; >>> BEGINNING OF NLS -- Start translating here.
  5. ; >>>
  6. ; >>> Do not translate the variable name on the left, only translate the
  7. ; >>> quoted string.
  8. ; >>>
  9. ;
  10. $APPNAME = "Lexmark PCL 5 Driver for Windows"
  11. $FINALMSG = "Contratulations!  The PCL 5 driver was successfully installed."
  12.  
  13. $Str_CompName_PCL5 = "PCL 5 Driver"
  14.  
  15. $Str_Prompt_TestingPCL5 = "Printing PCL test page.  Please wait..."
  16.  
  17. $Str_Disk_Setup = "Windows Setup Diskette"
  18. $Str_Disk_Driver = "Windows Setup Diskette"
  19.  
  20. ; >>>
  21. ; >>> END OF NLS -- Stop translating here
  22. ; >>>
  23.  
  24.  
  25. ;
  26. ; System variables...
  27. ;
  28. $INSTALLMETHODS = "E"
  29. $INSTALLMACRO = "PCL5_Install"
  30. $SIZECOMPONENT = "PCL5"
  31.  
  32.  
  33. ;
  34. ; Switches that toggle installation of the different components.
  35. ; Network administrators may override these in an extra config file
  36. ; to tailor for their own environment.
  37. ;
  38. $Install_PCL5 = $YES
  39.  
  40.  
  41. ;
  42. ; Other globals...
  43. ;
  44. $TrueDevice_PCL5 = ""    ; True name for the installed PCL 5 printer
  45.  
  46.  
  47. ;
  48. ; String constants
  49. ;
  50. $Driver_PCL5 = "lmpcl5s"
  51. $Str_PCL5 = "PCL 5"
  52.  
  53. $Keyword_PCL5_R = "Optra R"
  54. $Keyword_PCL5_L = "Optra L"
  55. $Keyword_PCL5_LX = "Optra Lx"
  56. $Keyword_PCL5_RX = "Optra Rx"
  57. $Keyword_PCL5_RT = "Optra Rt"
  58. $Keyword_PCL_Sun = "Optra E"
  59.  
  60.  
  61. [Disks]
  62.  
  63. PCLDrvDisk = $Str_Disk_Driver, drvdisk.bmp, 255, 0, 0
  64.  
  65.  
  66.  
  67. [Libraries]
  68.  
  69. PCLUtility = linutil.dll
  70.  
  71.  
  72.  
  73. [Banners]
  74.  
  75. PCLBanner = pcl.bmp
  76.  
  77.  
  78.  
  79. [Components]
  80.  
  81. ; Normal installation components
  82. PCL5 = $Str_CompName_PCL5, PCLBanner, $SYSTEMDIR, PCLDrvDisk, 800,
  83.             (wn3126l5.zip, EXCLUDE, oemsetup.inf)
  84.  
  85. PCLOEMSetup = $Str_CompName_PCL5, , $TEMPDIR, PCLDrvDisk, 1, lxl5oems.zip
  86.  
  87.  
  88. ; Server components
  89. ; Setup files add about 32K
  90. PCL5_Server = $Str_CompName_PCL5, , $SERVERAPPDIR, PCLDrvDisk, 350,
  91.         (wn3126l5.zip, lxl5oems.zip, =pcl.lin, =pcl.bmp)
  92.  
  93.  
  94.  
  95.  
  96. [Macros]
  97.  
  98. ; PrintPCLTestPage:    Prints test page(s) for PCL driver.
  99. ;                                    No return value.
  100. PrintPCLTestPage()
  101.     (
  102.     ShowMessage($Str_Prompt_TestingPCL5)
  103.     CallLibrary(PCLUtility, PrintTestPage, , ($Driver_PCL5, $TrueDevice_PCL5, $Port))
  104.  
  105.     ; Erase the "please wait" message...
  106.     ShowMessage("")
  107.     )
  108.  
  109.  
  110.  
  111. ; InstallPCL5:    Install the PCL driver.
  112. ;                    No return value (we use the return value as a temporary
  113. ;                    string.)
  114. ;
  115. InstallPCL5()
  116.     (
  117.    ; Make sure that the VXD has been installed (part of driver)
  118.    CallMacro(InstallVXD, , )
  119.  
  120.     ; Copy the driver files
  121.     InstallComponent(PCL5, $TRUESYSTEMDIR)
  122.  
  123.     ; Find the valid device-driver-expected name, using OEMSETUP.INF.
  124.     ; For now, we use $InstallPCL5 to hold the full name of the
  125.     ; OEMSETUP file left in the temporary directory...
  126.     ;
  127.    InstallComponent(PCLOEMSetup)
  128.     MakePathName($InstallPCL5, , $TEMPDIR, "oemsetup.inf")
  129.  
  130.     IfEqual($Printer_Type, $Str_Optra_R,
  131.                 SetVariable($TrueDevice_PCL5, $Keyword_PCL5_R))
  132.     IfEqual($Printer_Type, $Str_Optra_L,
  133.                 SetVariable($TrueDevice_PCL5, $Keyword_PCL5_L))
  134.     IfEqual($Printer_Type, $Str_Optra_LX,
  135.                 SetVariable($TrueDevice_PCL5, $Keyword_PCL5_LX))
  136.     IfEqual($Printer_Type, $Str_Optra_RX,
  137.                 SetVariable($TrueDevice_PCL5, $Keyword_PCL5_RX))
  138.     IfEqual($Printer_Type, $Str_Optra_RT,
  139.                 SetVariable($TrueDevice_PCL5, $Keyword_PCL5_RT))
  140.     IfEqual($Printer_Type, $Str_Sunflower,
  141.                 SetVariable($TrueDevice_PCL5, $Keyword_PCL_Sun))
  142.  
  143.     CallLibrary(PCLUtility, FindPrinterInOEMSETUP, $TrueDevice_PCL5,
  144.                 ($InstallPCL5, $TrueDevice_PCL5))
  145.  
  146.     ; Update win.ini
  147.     CallMacro(ConnectPrinter, , ($Driver_PCL5, $TrueDevice_PCL5, $Port))
  148.     )
  149.  
  150.  
  151.  
  152. ; PCL5_Install:    Entry point for when the script is run independently.
  153. ;
  154. PCL5_Install($cmdline)
  155.     (
  156.     CallMacro(InstallPCL5, , )
  157.     )
  158.